﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PartyFinderMP.master" AutoEventWireup="true" CodeFile="MyAccount.aspx.cs" Inherits="Index_MyAccount" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="text-align: center">
        <h3>Min profil:</h3>
    </div>
    <table>
        <tr>
            <td>
                <div class="BoxOuter" id="MyAccount_leftbox">
                    <div class="BoxInner">
                        <table>
                            <tr>
                                <td>
                                    <p class="MyAccountdescriptionText">Navn: </p>
                                </td>
                                <td>
                                    <asp:TextBox Width="150px" runat="server" ID="txtName"></asp:TextBox>

                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <p class="MyAccountdescriptionText">Efternavn: </p>
                                </td>
                                <td>
                                    <asp:TextBox Width="150px" runat="server" ID="txtLastname"></asp:TextBox>

                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <p class="MyAccountdescriptionText">Telefonnummer: </p>
                                </td>
                                <td>
                                    <asp:TextBox Width="150px" runat="server" ID="txtTlfNr"></asp:TextBox>

                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <p class="MyAccountdescriptionText">Fødselsår(xxxx): </p>
                                </td>
                                <td>
                                    <asp:TextBox Width="150px" runat="server" ID="txtBirthYear"></asp:TextBox>


                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <p class="MyAccountdescriptionText">Køn: </p>
                                </td>
                                <td>
                                    <asp:DropDownList Width="164px" ID="DDLGenderlist" DataTextField="GenderName" DataValueField="GenderId" runat="server"></asp:DropDownList>

                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:RequiredFieldValidator ID="txtNameValidator" runat="server" ControlToValidate="txtName" ForeColor="Red" ErrorMessage="Navn skal udfyles!"></asp:RequiredFieldValidator>
                                    <asp:RequiredFieldValidator ID="txtLastnameValidator" runat="server" ControlToValidate="txtLastname" ForeColor="Red" ErrorMessage="Efternavn skal udfyles!"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="txtTlfNrValidatoer" runat="server" ErrorMessage="Telefonnnr skal være 8 cifret tal" ControlToValidate="txtTlfNr" ForeColor="Red" ValidationExpression="^\d{8}$"></asp:RegularExpressionValidator>
                                    <asp:RegularExpressionValidator ID="txtBirthYearValidator" runat="server" ErrorMessage="Fødselsår skal være 4 cifret tal" ControlToValidate="txtBirthYear" ForeColor="Red" ValidationExpression="^\d{4}$"></asp:RegularExpressionValidator>
                                </td>
                            </tr>
                        </table>

                    </div>
                </div>
            </td>
            <td>
                <div class="BoxOuter" id="MyAccount_rightbox">
                    <div class="BoxInner" style="margin: 20px">
                        <asp:Image ID="ProfilePhotoPicture" CssClass="img-rounded" Width="345px" runat="server" />
                        Rediger profilfoto:
                        <br />
                        <asp:FileUpload ID="FileUploadControl" runat="server" />
                        <asp:Button runat="server" ID="UploadButton" Text="Upload" OnClick="UploadButton_Click" />
                        <br />
                        <asp:Label runat="server" ID="StatusLabel" Text="Upload status: " />
                    </div>
                </div>
            </td>
        </tr>
    </table>
    <br />
    <table>
        <tr>
            <td>
                <asp:Button ID="btnBack" CssClass="btn" Width="125px" runat="server" Text="Tilbage" OnClick="btnBack_Click" />
                <asp:Label runat="server" ID="txtSaveSucces" ForeColor="green"></asp:Label>
            </td>
            <td>
                <asp:Button ID="Button2" CssClass="btn" Width="125px" runat="server" Text="Skift kodeord" OnClick="Button2_Click" />
                <asp:Button ID="Button1" CssClass="btn" runat="server" Text="Gem ændringer" OnClick="Button1_Click" />
            </td>
        </tr>
    </table>


</asp:Content>

